<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
MYTCONN();
	$DefSelect = '------------------------ Todos ------------------------'; 
	$Origen1 = null;
	if(isset($_POST['ExcOrigen1']) && $_POST['ExcOrigen1'] != '') {
	$Origen1 = $_POST['ExcOrigen1'];
	}
if (isset($_POST['ExcOrigen0']) && $_POST['ExcOrigen0'] > 0) {
$Qur = "SELECT OriOrden AS ID, CONCAT(OriNumero,' ',OriNombre) AS NAME 
	FROM origenes WHERE OriActivo = 1 AND OriDominio = {$_POST['ExcOrigen0']}";
} else {
$Qur = "SELECT OriOrden AS ID, CONCAT(OriNumero,' ',OriNombre) AS NAME 
	FROM origenes WHERE OriActivo = 1";
}
mn_field('select','ED','ExcOrigen1',$Origen1,$Qur,$DefSelect,'False','" style="width:370px'); ?>